package invoice.footer;

import invoice.line.EnglishLine;

public class EnglishFooter extends Footer {
    public void print(){
        printFooter();
        super.print();
    }

    private String getBlank(){
        StringBuilder sb=new StringBuilder(" ");
        for(int i=1;i<43;i++)
            sb.append(" ");
        return sb.toString();
    }

    protected void printFooter(){
        System.out.println("Total"+getBlank()+"$"+ EnglishLine.total);
    }
}
